package com.industrial.auth.controller.response.sdt;

import com.alibaba.fastjson2.annotation.JSONField;

import java.util.Date;

/**
 * 山东通获取AccessToken响应类
 * @author candie
 */
public class SdtAccessTokenResp {

    /**
     * 出错返回码，为0表示成功，
     * 非0表示调用失败
     */
    @JSONField(name = "errcode")
    private int errCode;

    /**
     * 返回码提示语
     */
    @JSONField(name = "errmsg")
    private String errMsg;

    /**
     * 获取到的凭证，最长为512字节
     */
    @JSONField(name = "access_token")
    private String accessToken;

    /**
     * 凭证的有效时间(秒)
     */
    @JSONField(name = "expires_in")
    private Date expiresIn;

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Date getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Date expiresIn) {
        this.expiresIn = expiresIn;
    }
}
